<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>重置密码</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-image: url('png/backGround.png'); /* 设置背景图片，替换为实际图片路径 */
            background-size: cover;
            background-position: center;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        form {
            background-color: rgba(255, 255, 255, 0.9); /* 半透明白色背景 */
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
            width: 350px;
        }

        h1 {
            text-align: center;
            color: #333;
            margin-top: 0;
        }

        .form-group {
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
        }

        label {
            margin-bottom: 5px;
            color: #555;
            font-weight: bold;
        }

        input {
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 16px;
        }

        .button-group {
            display: flex;
            justify-content: space-between;
        }

        input[type="submit"] {
            background-color: #007BFF;
            color: white;
            padding: 12px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            flex-basis: 48%;
            transition: background-color 0.3s ease;
        }

        input[type="submit"]:hover {
            background-color: #0056b3;
        }

        input[type="reset"] {
            background-color: #ccc;
            color: #333;
            padding: 12px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            flex-basis: 48%;
            transition: background-color 0.3s ease;
        }

        input[type="reset"]:hover {
            background-color: #b3b3b3;
        }

        a {
            color: #007BFF;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        a:hover {
            color: #0056b3;
        }

        .msg {
            color: red;
            text-align: center;
            margin-bottom: 15px;
            font-weight: bold;
        }
    </style>
</head>

<body>
<form action="userServlet" method="get">
    <c:if test="${msg!= null}">
        <p class="msg">${msg}</p>
    </c:if>
    <input type="hidden" name="path" value="findPassword">
    <h1>重置密码</h1>
    <div class="form-group">
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username" value="">
    </div>
    <div class="form-group">
        <label for="email">邮箱:</label>
        <input type="text" id="email" name="email" value="">
    </div>
    <div class="button-group">
        <input type="submit" value="提交">
        <input type="reset" value="重置">
    </div>
    <div class="form-group">
        <a href="login.jsp">返回登录</a>
    </div>
</form>
</body>

</html>